﻿#ifndef _GAME_STATE_MANAGER_H_
#define _GAME_STATE_MANAGER_H_

#include "game.h"
#include "scene_play.h"

class CGameStateManager : public CGame
{
protected:
	//Các màn chơi
	CGameState* _CurState;
	CScenePlay* _ScenePlay;

public:
	CGameStateManager(HINSTANCE hInstance, LPWSTR Name, int Mode, bool IsFullScreen, int FrameRate);
	~CGameStateManager();

	virtual void RenderElements(LPDIRECT3DDEVICE9 d3dDevice, int Delta);
	virtual void LoadResources(LPDIRECT3DDEVICE9 d3dDevice);
	virtual void ProcessInput(LPDIRECT3DDEVICE9 d3dDevice, int Delta);
	virtual void UpdateElements(int deltaTime);
	virtual void OnKeyDown(int KeyCode);
	virtual void OnKeyUp(int KeyCode);
};

#endif